<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ page contentType="text/html;charset=UTF-8"%>
<title>管理员登录</title>
<link href="/program/login/css.css" rel="stylesheet" type="text/css" />
<script>
	function formSub(){
		if(document.getElementById('user_name').value==''){
			alert('请输入用户名！');
			document.getElementById('user_name').focus();
			return false;
		}
		if(document.getElementById('passwd').value==''){
			alert('请输入密码！');
			document.getElementById('passwd').focus();
			return false;
		}
		if(document.getElementById('userrand').value==''){
			alert('请输入验证码！');
			document.getElementById('userrand').focus();
			return false;
		}
		document.loginForm.submit();
	}
	
	document.onkeydown = keyDown;
		
	function keyDown(e){ 
		if((e ? e.which : event.keyCode)==13 ){
				formSub();
		}
	}

	function GetFocus(){
		document.getElementById('user_name').focus();
	}
</script>

</head>
<body onload="GetFocus()">
<form action="/doTradeReg.do" method="post" name="loginForm">
 
	 
	<input type="hidden" name="cookietime" value="3600" /> <!--one month--> 
	<input type="hidden" name="jumpurl" value="/program/admin/index/index.jsp" /> 
	 
	<div id="top">
	</div>
	
	<div id="center">
	   <div id="c_left"><img src="/program/login/images/left.jpg" /></div>
	   <div id="c_center">
	     <div id="c_c_y" >
			  <ul>
			  	<li>用户名：</li>
			  	<li>密&nbsp;&nbsp;&nbsp;&nbsp;码：</li>
			  	<li>验证码：</li>
			  </ul> 
			  
			  <br><br/>
			 <!--  <select name="user_name" id="user_name">
			  	<option value="b2cadmin">B2C运营商管理员</option>
			  	<option value="b2badmin">B2B运营商管理员</option>
				<option value="teamadmin">团购运营商管理员</option>
			  	<option value="cmsadmin">CMS网站管理员</option>
			  	<option value="malladmin">MALL运营商管理员</option>
			  </select>  -->
			  <input type="text" name="user_name" id="user_name" maxlength="20"style="width:140px;" value="admin"/>
			  <input type="password" name="passwd" id="passwd" maxlength="20"style="width:140px;" value="wrdef_970103"/>
			  <input type="text" name="userrand" id="userrand" maxlength="10" style="width:60px;" />
			  <img  name="rc" id="rc" src="/checkImage" onclick="changeCode()"/>
			  <input type="hidden" name="bpm_id" value="2103"/>
			  <div class="clear_ft"></div>
			  <img src="/program/login/images/dl.jpg" style="margin-left:60px;cursor:pointer;" onclick="formSub()"/>
			  <img src="/program/login/images/cz.jpg" style="cursor:pointer;" onclick="document.loginForm.reset();"/>
			</div>
	   </div>
	   <div id="c_right"></div>
	</div>
	<div id="c_down"><span>商铺后台登录界面</span></div>
	 <div id="yy"></div>
	 <script language="javascript">
		function changeCode(){
			var dt = new Date();
			var randomnum = Math.random();
			document.getElementById("rc").src= "/checkImage"+'?'+randomnum;
			document.getElementById("rc").style.visibility = 'visible';
		}
	</script>
</form>	
</body>
</html>
 